package com.beidu.lottery.call.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 活动基础信息
 * </p>
 *
 * @author 北渡
 * @since 2023-08-09
 */
@Data
@Builder
@ApiModel(value = "ActivityInfoStep1VO")
@NoArgsConstructor
@AllArgsConstructor
public class ActivityInfoStep1VO implements Serializable {


    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "活动类型(0-报名活动、1-投票活动)")
    private Integer activityType;

    @ApiModelProperty(value = "活动开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime activityBeginTime;

    @ApiModelProperty(value = "活动结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime activityEndTime;

    @ApiModelProperty(value = "活动封面图Url")
    private String coverImgUrl;

    @ApiModelProperty(value = "活动规则说明")
    private String activityRuleDescribe;

}
